package com.runshu.newsmartark.mvp.model;

import com.runshu.newsmartark.common.ConstantUrl;
import com.runshu.newsmartark.entity.SearchInfoEntity;
import com.runshu.newsmartark.mvp.contract.SearchDtaContract;
import com.runshu.newsmartark.network.netbean.HttpRequestParamsBuilder;
import com.runshu.newsmartark.network.netbean.ResponseBean;
import com.runshu.newsmartark.network.netinterface.BaseCallBack;

/**
 * Demo class
 *
 * @author yu
 * @date 2020/11/4
 * @decs：
 */

public class SearchDtaModel extends BaseModel implements SearchDtaContract.Model {

    @Override
    public void getSearchTitle(String proName, String mac, BaseCallBack baseCallBack) {
        HttpRequestParamsBuilder builder = new HttpRequestParamsBuilder();
        builder.putParams("productName", proName);
        builder.putParams("macAddress", mac);
        super.initDataFromServer(ConstantUrl.GET_LxTitie, builder.build(), SearchInfoEntity.class, ResponseBean.RES_DATATYPE_BEANLIST, baseCallBack);
    }
}